<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html 	xmlns="http://www.w3.org/1999/xhtml" 
		xmlns:ui="http://java.sun.com/jsf/facelets" 
		xmlns:h="http://java.sun.com/jsf/html"
		xmlns:f="http://java.sun.com/jsf/core" 
		xmlns:p="http://primefaces.org/ui" 
		xmlns:pe="http://primefaces.org/ui/extensions" >
<h:body>
	<p:dialog widgetVar="membershipReceiptDialogWidget"
			id="membershipReceiptDialogWidgetId" height="400" width="600" header="Membership Receipt"
			closable="false" draggable="true" resizable="false" modal="true" appendToBody="true">
			<h:form id="MembershipReceiptForm" >
			<p:panel>  
					<h:panelGrid  id="receiptPanel" columns="2" >  
					    <h:outputLabel value="Name: " />  
					    <h:outputLabel style="font-weight:bold;" value="#{membershipPaymentMB.member.name}" />  
					
					    <h:outputLabel value="Membership Package: " />  
					    <h:outputLabel value="#{membershipPaymentMB.member.membership.name}" />  
					    
						<h:outputLabel value="Paid Amount (RM): " />  
						<h:outputLabel value="#{membershipPaymentMB.member.membership.price}" />  
	
						<h:outputLabel value="Remark: " />  
					    <h:outputLabel value="#{membershipPaymentMB.printReceipt.remark}" />  
					    
						<h:outputLabel value="Receipt No: " />  
					    <h:outputLabel value="#{membershipPaymentMB.printReceipt.paymentNo}" /> 					    
					    
					</h:panelGrid> 
					<p:commandButton id="btnPrint" value="Print" type="button" icon="ui-icon-print" >
						<p:printer target="receiptPanel"/>					
					</p:commandButton>
					<p:commandButton id="btnSave" value="Close" 
					oncomplete="closeDialogIfSucess(xhr, status, args, membershipFeeDialogWidget 'membershipFeeDialogWidgetId')" />  

			</p:panel>
			</h:form>
		</p:dialog>	
</h:body>
</html>